#!/bin/sh
SOURCE_DIR=`pwd`
#首先是判断文件夹是否存在
if [ -d ../abc_bank_build ]
then
	echo "abc_bank_build exist! will delete it."
	rm -rf ../abc_bank_build
fi
echo "mkdir abc_bank_build"
mkdir -p ../abc_bank_build
cd ../abc_bank_build
cmake $SOURCE_DIR
make
cd $SOURCE_DIR
cp -arf ./server.conf ../abc_bank_build/bin/

